package com.gzz.orchid.context.infrastructure.persistence.entity.sys;

import com.gzz.orchid.context.infrastructure.persistence.AbstractPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户特权表 sys_authorize
 *
 * @author higmd
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysPrivilegePo extends AbstractPojo {
    private Long id;
    /**
     * 用户ID user_id
     */
    private Long userId;
    /**
     * 模块编码 module_code
     */
    private String moduleCode;
    /**
     * 权限范围 purview
     */
    private Integer purview;
    /**
     * 生效时间 eff_at
     */
    private LocalDateTime effAt;
    /**
     * 失效时间 exp_at
     */
    private LocalDateTime expAt;
    /**
     * 状态 status
     */
    private Integer status;
}
